<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
<title>物流管理系统</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/css/readerTyper.css?param=Math.random()" />
<style type="text/css">
p {
	margin: 20px 0px 0px 0px;
	text-align: left;
	color: #1166EE
}
</style>
</head>
<body style="font-size: 20px">
	<%@ include file="navigation.jsp"%>
	<div id="content">
		<p id="p">当前位置：门店管理 > 门店信息 >> </p>
		<div>
			<div align="left">
				<input id="button" type="button"
					onclick="window.location='${pageContext.request.contextPath}/toAddShop'"
					value="添加门店信息">
			</div>
			<table border="1" cellpadding="0" cellspacing="0">
				<tr align="center";>
					<td class="t1">门店编号</td>
					<td class="t1">门店名称</td>
					<td class="t1">门店电话</td>
					<td class="t1">创建时间</td>
					<td class="t1">修改时间</td>
					<td class="t1">修改</td>
					<td class="t1">删除</td>
				</tr>
				<c:forEach items="${list}" var="shop">
					<tr>
						<td class="t1">${shop.shopId}</td>
						<td class="t1">${shop.shopName}</td>
						<td class="t1">${shop.shopPhone}</td>
						<td class="t1"><fmt:formatDate value="${shop.createTime}"
								pattern="yyyy-MM-dd" /></td>
						<td class="t1"><fmt:formatDate value="${shop.updateTime}"
								pattern="yyyy-MM-dd" /></td>
						<td class="t1"><a
							href="${pageContext.request.contextPath}/toUpdShop?shopId=${shop.shopId}">修改</a></td>
						<td class="t1"><a
							href="${pageContext.request.contextPath}/delShop?shopId=${shop.shopId}"
							onclick="return confirm('确定删除${shop.shopName}吗?');">删除</a></td>
					</tr>
				</c:forEach>
			</table>
		</div>
</body>
</html>